#include <iostream>

#include "gameEngine.h"

gameEngine::gameEngine(){
    inMap.setParentEngine(this);
}
gameEngine::~gameEngine(){}

mapCtr* gameEngine::getMap(){
    return &inMap;
}

void gameEngine::stackNActorW(actor * act){
    waitingNActors.push(act);
    NActorsCond.signal();
}
actor* gameEngine::getNextNActorW(){
    if( waitingNActors.empty() ) return NULL;
    actor* act = waitingNActors.front();
    waitingNActors.pop();
    return act;
}

void gameEngine::execActions(){
    inMap.execActions();
}
